<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/vue.js"></script>
</head>
<body>
    <div id="root">
          <h2>渲染</h2> 
          <ul>
              <li v-for="item in names">{{item.name}}</li>
          </ul>
    </div>
</body>
</html>
<script>
    const vm = new Vue({
        el:'#root',
        data:{
            names:[
                { id: 1, name: "貂蝉" },
                { id: 2, name: '妲己' },
                { id: 3, name: '大桥' },
                { id: 4, name: '小乔' },
                { id: 5, name: '周瑜' },
            ]
        }
    })
</script>